import 'package:flutter/material.dart';

import '../../../../shared/shared.dart';

class Search extends StatelessWidget {
  const Search({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return TextFormField(
      decoration: InputDecoration(
          contentPadding: const EdgeInsets.symmetric(vertical: 10.0),
          prefixIcon: Container(
              margin: const EdgeInsets.symmetric(horizontal: 6),
              child: IconFont(IconNames.search)),
          prefixIconConstraints:
              const BoxConstraints(minWidth: 40, minHeight: 40),
          border: const OutlineInputBorder(
              borderRadius: BorderRadius.all(Radius.circular(50)),
              borderSide: BorderSide(color: ColorConstants.themeColor)),
          focusedBorder: const OutlineInputBorder(
              borderRadius: BorderRadius.all(Radius.circular(50)),
              borderSide: BorderSide(color: ColorConstants.themeColor)),
          enabledBorder: const OutlineInputBorder(
              borderRadius: BorderRadius.all(Radius.circular(50)),
              borderSide: BorderSide(color: ColorConstants.themeColor))),
      cursorColor: ColorConstants.selectColor,
    );
  }
}
